/**
 * @Author: 陈瑞鹏
 * @Date:   2022-10-21 10:07:06
 * @Last Modified by:   陈瑞鹏
 * @Last Modified time: 2022-10-21 10:38:22
 */
import mongoose from "mongoose";

const Schema = mongoose.Schema;
const AchTaskSchema: mongoose.Schema = new Schema({
  roleId: { type: Number, desc: "角色Id", index: true },
  id: { type: Number, desc: "任务Id", index: true },
  name: { type: String, desc: "任务名称" },
  progress: { type: Number, desc: "进度", default: 0 },
  receivePro: { type: Array, desc: "领取进度", default: [] }
}, { versionKey: false }).index({ roleId: 1, id: 1 });

const AchTask = mongoose.model('AckTask', AchTaskSchema);
export default AchTask;